package com.example.demo.service.impl;

import com.example.demo.entity.RoadConnect;
import com.example.demo.mapper.RoadConnectMapper;
import com.example.demo.service.RoadConnectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ws
 * @since 2023-08-24
 */
@Service
public class RoadConnectServiceImpl implements RoadConnectService {

    @Autowired
    private RoadConnectMapper roadConnectMapper;
    @Override
    public List<RoadConnect> getAllRoadConnects() {
        return roadConnectMapper.getAllRoadConnects();
    }

    @Override
    public List<RoadConnect> getAllRoadConnects1() {


        return roadConnectMapper.getAllRoadConnects1();
    }

    @Override
    public List<RoadConnect> getRoadPath(Integer from_cross) {
        return roadConnectMapper.getRoadPath(from_cross);
    }
}
